<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'main_index.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link rel="stylesheet" type="text/css" href="qczlm/easyui/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="qczlm/easyui/themes/icon.css">
		<link rel="stylesheet" type="text/css" href="qczlm/easyui/demo/demo.css">
		<script type="text/javascript" src="qczlm/easyui/js/jquery.min.js"></script>
		<script type="text/javascript" src="qczlm/easyui/js/jquery.easyui.min.js"></script>
		<style type="text/css">
			body{font-family:Microsoft YaHei;}
			ul{list-style: none;padding:0px; margin:0px;}
			a{text-decoration:none;}
			.menu div{border:1px solid red;}
		</style>
	</head>
		
	<!-- js代码 -->
	<script type="text/javascript">
		$(function(){
			$(".menu div").next("ul").hide();
			//在iframe中显示相应的内容
			$("li a").each(function(){
				$(this).attr("target","iframe");
			});
			var dv=$(".menu div");
			dv.click(function(){
				if($(this).next("ul").is(":hidden")){
					$(this).next("ul").show();
				}else{
				  	$(this).next("ul").hide();
				}
			});
		});
	</script>
	<body class="easyui-layout">
		<div data-options="region:'north',border:false" style="height:60px;background:#B3DFDA;padding:10px">
			<h1>欢迎登录千城智联云平台：${username}<h1>
		</div>
		
		<!-- 左侧边框start -->
		<div data-options="region:'west',split:true,title:'菜单栏'" style="width:230px;padding:10px;background-color:#DCDCDC">
			<%-- <div class="div1">
				<ul class="ul1">
					<li>菜单一
						<ul>
							<c:choose>
							<c:when test="${type eq null}">
								<li><a href="https://www.baidu.com">百度</a></li>
								<li><a href="mexamine/locaHref">测试连接</a></li>
								<li><a href="mexamine/locaflm">查看权限列表</a></li>
							</c:when>
							<c:otherwise>
								<li><a href="mexamine/chlist">查看申请列表</a></li>
							</c:otherwise>
							</c:choose>
						</ul>
					</li>
					<li>
						菜单二
						<ul>
							<li>123</li>
							<li>123</li>
							<li>123</li>
						</ul>
					</li>
				</ul>
			</div> --%>
		<div class="menu">
			<%-- <div>申请权限</div>
			<ul>
				<c:choose>
					<c:when test="${type eq null}">
						<li><a href="https://www.baidu.com">百度</a></li>
						<li><a href="mexamine/locaHref">测试连接</a></li>
						<li><a href="mexamine/locaflm">查看权限列表</a></li>
					</c:when>
					<c:otherwise>
						<li><a href="mexamine/chlist">查看申请列表</a></li>
					</c:otherwise>
				</c:choose>
			</ul> --%>
			<div>权限管理
				<ul>
					<li><a>用户组列表</a></li>
					<li><a>用户权限列表</a></li>
				</ul>
			</div>
			<div>用户管理
				<ul>
					<li><a>用户列表</a></li>
					<li><a>添加用户</a></li>
				</ul>
			</div>
		</div>
		</div>
		<!-- end -->
		<div data-options="region:'east',split:true,collapsed:true,title:'East'" style="width:100px;padding:10px;">east region</div>
		<div data-options="region:'south',border:false" style="height:50px;background:#A9FACD;padding:10px;">south region</div>
		<div data-options="region:'center',title:' '">
	            <iframe id="iframe" name="iframe" width="100%" src="" height="100%" frameborder="0"></iframe>
		</div>
	</body>
</html>
